package com.jzk.cloudshop.portalgoodsservice.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api("goods api")
@RestController
@RequestMapping("/portal/service/goods")
class GoodsServiceController {

	protected static final Logger logger = LoggerFactory.getLogger(GoodsServiceController.class);
	
	@ApiOperation(value="根据商品Id获取商品信息", notes="")
    @RequestMapping(value={"/{goodsId}"}, method=RequestMethod.GET)
    public String getGoodsById(@PathVariable(value = "goodsId", required=true) Long goodsId) {
        return this.getClass().getName() + ", goodsId:" + goodsId;
    }
}